package com.wg.photo;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

/**
 * Created by Went_Gone on 2017/5/15.
 */

public abstract class BaseActivity extends AppCompatActivity implements ViewListener{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getLayoutId()!=0){
            setContentView(getLayoutId());
        }
        initViews();
        setListeners();
    }

    public void close(View view){
        finish();
    }
    public void comeBack(View view){
        finish();
    }
}
